/* Reset default margins and ensure box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure the body takes the full viewport height */
body {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack top and bottom sections vertically */
    background-color: #ffffff;
    overflow-x: auto; /* Allow horizontal scrolling if content overflows */
    font-family: 'Arial', sans-serif;
    padding: 8px;
}

/* Top section styling */
.top-area {
    background-color: #2196F3;        /* Blue for visibility */
    color: white;
    padding: 20px;
    display: flex; /* Make top-area a flex container */
    justify-content: space-between; /* Push h1 left, menu right */
    align-items: center; /* Vertically center h1 and menu */
    flex: 0 0 auto; /* Fixed height based on content */
    border-top-left-radius: 10px; /* Round top-left corner */
    border-top-right-radius: 10px; /* Round top-right corner */
    border-bottom-left-radius: 0; /* Keep bottom-left corner rectangular */
    border-bottom-right-radius: 0; /* Keep bottom-right corner rectangular */
}

/* Style the top-heading (h1) */
.top-heading {
    font-size: 2rem; /* Adjust size as needed */
    margin: 0; /* Remove default margin for alignment */
}


/* Style the menu */
.menu ul {
    display: flex; /* Makes menu items horizontal */
    list-style: none; /* Removes default bullets */
    margin: 0; /* Remove default margin for alignment */
    padding: 0; /* Remove default padding */
}

.menu li {
    margin-left: 1rem; /* Space between menu items */
}

.menu a {
    text-decoration: none; /* Removes underline from links */
    color: white; /* White for visibility against blue background */
    font-size: 16px; /* Adjust size as needed */
}

.menu a:hover {
    color: #ccc; /* Light gray on hover for contrast, adjust as needed */
}

/* Style the text-box */
.text-box {
    padding: 2rem; /* Spacing around content */
    margin: 0 auto; /* Centers the content */
}

.text-box h2 {
    font-size: 1.5rem; /* Slightly smaller than top-heading */
    margin-bottom: 1rem; /* Space below heading */
}

.text-box p {
    margin-bottom: 1rem; /* Space between paragraphs */
}

.text-box ul {
    margin-bottom: 1rem; /* Space between paragraphs */
}

.text-box a {
    color: #007bff; /* Blue for links, matches hover color of menu */
    text-decoration: none;
}

.text-box a:hover {
    text-decoration: underline; /* Underline on hover for clarity */
}

.text-box .item-title {
    font-weight: bold;
}

h2.caution {
    padding: 10px;
 }

.game_pool > * {
    display: inline-block;
    padding: 15px 30px;
    background-color: forestgreen;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin: 10px;
}

.game_pool > .active {
    background-color: mediumvioletred;
}

.game_pool > *:hover {
    transform: translateY(-4px);
}

.game-area {
    background-color: #007000;
    color: #fff;
    padding: 8px;
    border-top-left-radius: 0; /* Rectangular top-left corner */
    border-top-right-radius: 0; /* Rectangular top-right corner */
    border-bottom-left-radius: 10px; /* Round bottom-left corner */
    border-bottom-right-radius: 10px; /* Round bottom-right corner */
}

.log-panel {
    flex-grow: 1;
    padding: 1vw;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 1vw;
    overflow-y: auto;
    overflow-x: auto;
}

.log-entry {
    margin: 0;
    padding: 2px 0;
    font-size: 0.9em;
    line-height: 1.2;
    color: #000;
    font-family: Consolas, monospace; /* Monospaced font */
}

@media (max-width: 600px) {
    .top-area {
        flex-direction: column;
        align-items: flex-start;
    }
    .menu ul {
        flex-direction: column;
        margin-top: 10px;
    }
    .menu li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}
